<div th:fragment="frag(list)">
	<div class="modal fade" th:id="|${list.app.domprefix}-${list.id}-modal-create-property|">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">创建属性</h4>
				</div>
				<div class="modal-body" data-bigradio>
					<input type="hidden" name="app">
					<input type="hidden" name="viewproperty">
					<input type="hidden" name="select" value="false">
					<div class="box box-primary" data-bigradio-target="select.false">
						<div class="box-body">
							<div class="form-group">
								<label class="control-label">名称</label>
								<input class="form-control" name="name" placeholder="请输入属性名称">
							</div>
							<div class="form-group" data-bigradio>
								<label class="control-label">类型</label>
								<div class="row">
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="1" name="type">文本</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="2" name="type">数字</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="3" name="type">整数</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="4" name="type">小整数</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="5" name="type">日期</label>
										</div>
									</div>
									<div class="col-sm-2">
										<div class="radio">
											<label><input type="radio" value="6" name="type">日期时间</label>
										</div>
									</div>
								</div>
							</div>
							<div class="form-group hidden" data-bigradio-target="type.1">
								<label class="control-label">长度</label> <select
									class="form-control" name='length'>
									<option value=50>小-50</option>
									<option value=255 selected>中-255</option>
									<option value=500>大-500</option>
									<option value=4000>巨大-4000</option>
									<option value=36>ID-36</option>
								</select>
							</div>
							<div data-bigradio-target="type.2" class="hidden">
								<div class="form-group">
									<label class="control-label">整数位+小数位</label> <select
										class="form-control" name='precision'>
										<option value=10>小-10</option>
										<option value=20 selected>中-20</option>
										<option value=30>大-30</option>
									</select>
								</div>
								<div class="form-group">
									<label class="control-label">小数位</label> <select
										class="form-control" name='scale'>
										<option value=1>1位</option>
										<option value=2 selected>金额-2</option>
										<option value=3>3位</option>
										<option value=4>经纬度-4</option>
										<option value=5>5位</option>
										<option value=6>6位</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="control-label">默认值</label>
								<input class="form-control" name="default" placeholder="请输入默认值">
							</div>
						</div>
					</div>
					<div class="box box-primary hidden" data-bigradio-target="select.true">
						<div class="box-body">
							<div class="form-group">
								<label class="control-label">名称</label>
								<input class="form-control" name="viewpropertyname" placeholder="请输入视图属性名称">
							</div>
							<div class="form-group">
								<label class="control-label">关系</label>
								<select class="form-control" name='relation' data-bigcombo-url="/meta/man/biz/relation" data-bigcombo-autoload 
									th:data-bigcombo-object="${list.app.object.id}">
									<option value>请选择关系...</option>
								</select>
							</div>
							<div class="form-group">
								<label class="control-label">属性</label>
								<select class="form-control" name='property' data-bigcombo-url="/meta/man/biz/property" data-bigcombo-autoload 
									th:data-bigcombo-object="${list.app.object.id}" data-bigcombo-target="relation">
									<option value>请选择属性...</option>
								</select>
							</div>
							<div class="form-group">
								<label class="control-label">默认值</label>
								<input class="form-control" name="selectdefault" placeholder="请输入默认值">
							</div>
						</div>
					</div>
					<div>
						<div class="box box-primary">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label><input type="checkbox" value="list" name="viewtype"> 添加到列表</label>
								</div>
								<div class="hidden" data-bigradio-target="viewtype.list">
									<div class="form-group">
										<label class="control-label">控件</label>
										<select class="form-control" name='listinputtype'>
											<option value="hidden">hidden</option>
											<option value="textfield" selected>textfield</option>
											<option value="icon">icon</option>
											<option value="file">file</option>
											<option value="html">html</option>
										</select>
									</div>
									<div class="form-group">
										<label class="control-label">宽度</label>
										<div class="row">
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="50"
														name="listwidth">小</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="100"
														name="listwidth" checked>中</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="145"
														name="listwidth">日期时间</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="200"
														name="listwidth">大</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="300"
														name="listwidth">巨大</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="-1"
														name="listwidth">自适应</label>
												</div>
											</div>
										</div>
									</div>
									<div class="form-group">
										<label class="control-label">表达式</label>
										<input class="form-control" name="expression" placeholder="请输入表达式">
									</div>
									<label data-bigradio><input type="checkbox" value="1" name="order"> 排序</label>
									<label class="hidden" data-bigradio-target="order.1"><input type="radio" value="ASC" name="ordertype" checked> 升序</label>
									<label class="hidden" data-bigradio-target="order.1"><input type="radio" value="DESC" name="ordertype"> 降序</label>
									<div class="form-group">
										<label class="control-label">Ajax（该属性通过前端ajax获取数据，目前已有：meta/listproperty/m2cm,meta/listproperty/sql）</label>
										<input class="form-control" name="listajax" placeholder="请输入Ajax请求URL">
									</div>
									<div class="form-group">
										<label class="control-label">Sql（当上面属性值为meta/listproperty/sql时，才需要填写）</label>
										<input class="form-control" name="listsql" placeholder="请输入Sql语句">
									</div>
								</div>
							</div>
						</div>
						<div class="box box-primary">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label><input type="checkbox" value="form" name="viewtype"> 添加到表单</label>
								</div>
								<div data-bigradio-target="viewtype.form" class="hidden">
									<div class="form-group">
										<label class="control-label">控件</label>
										<select class="form-control" name='forminputtype'>
											<option value="hidden">hidden</option>
											<option value="textfield" selected>textfield</option>
											<option value="numberfield">numberfield</option>
											<option value="textarea">textarea</option>
											<option value="datetime">datetime</option>
											<option value="date">date</option>
											<option value="password">password</option>
											<option value="file">file</option>
											<option value="image">image</option>
											<option value="ckeditor">ckeditor</option>
											<option value="map">map</option>
										</select>
									</div>
									<div class="form-group">
										<div class="checkbox">
											<label><input type="checkbox" name="required" value=1>  必填</label>
											<label><input type="checkbox" name="readonly" value=1>  只读</label>
											<label><input type="checkbox" name="submit" value=1 checked>  提交</label>
											<label><input type="checkbox" name="allform" value=1>  添加到所有表单</label>
										</div>
									</div>
									<div class="form-group">
										<label class="control-label">表单加载默认值</label>
										<div class="checkbox">
											<label><input type="checkbox" name="forminitreplaceempty" value=1>  空值时替换</label>
											<label><input type="checkbox" name="forminitreplacevalue" value=1>  非空时替换</label>
											<label><input name="forminitvalue" placeholder="请输入表单加载默认值"></label>
										</div>
									</div>
									<div class="form-group">
										<label class="control-label">表单提交默认值</label>
										<div class="checkbox">
											<label><input type="checkbox" name="formsubmitreplaceempty" value=1>  空值时替换</label>
											<label><input type="checkbox" name="formsubmitreplacevalue" value=1>  非空时替换</label>
											<label><input name="formsubmitvalue" placeholder="请输入表单提交默认值"></label>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="box box-primary">
							<div class="box-body">
								<div class="form-group" data-bigradio>
									<label><input type="checkbox" value="search"
										name="viewtype"> 添加到查询</label>
								</div>
								<div data-bigradio-target="viewtype.search" class="hidden">
									<div class="form-group" data-bigradio>
										<label class="control-label">控件</label>
										<div class="row">
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="hidden"
														name="searchinputtype">hidden</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="textfield"
														name="searchinputtype">textfield</label>
												</div>
											</div>
											<div class="col-sm-2">
												<div class="radio">
													<label><input type="radio" value="checkboxfilter"
														name="searchinputtype">checkboxfilter</label>
												</div>
											</div>
										</div>
									</div>
									<div class="form-group hidden" data-bigradio-target="searchinputtype.checkboxfilter">
										<label class="control-label">listFilter</label>
										<input class="form-control" name="listfilter" placeholder="请输入listFilter">
									</div>
									<div class="form-group" data-bigradio>
										<label class="control-label">查询类型</label>
										<div class="radio" >
											<label><input type="radio" name="comparetype" value="like" checked> 模糊匹配</label>
											<label><input type="radio" name="comparetype" value="equal"> 完全匹配</label>
											<label><input type="radio" name="comparetype" value="expression"> 表达式匹配</label>
											<label><input type="radio" name="comparetype" value="select-expression"> 选择表达式匹配</label>
											<label data-bigradio-target="comparetype.expression" class="hidden"><input name="searchexpression" placeholder="请输入查询表达式"></label>
											<label data-bigradio-target="comparetype.select-expression" class="hidden"><input name="searchdictionarytype" placeholder="请输入数据字典类型"></label>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default pull-left"
						data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary fa fa-plus-circle">
						提交</button>
				</div>
			</div>
		</div>
	</div>
</div>
